<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>deemon &#8212; Daemon Main &mdash; Interop Router 3.30 documentation</title>
    <link rel="stylesheet" href="../../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
          URL_ROOT:    '../../',
          VERSION:     '0',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>
    <script type="text/javascript" src="../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../_static/doctools.js"></script>
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="top" title="Interop Router 3.30 documentation" href="../../index.html" />
    <link rel="up" title="Python Modules" href="mod_index.html" />
    <link rel="next" title="clusters &#8212; Cluster Interface" href="clusters.html" />
    <link rel="prev" title="Python Modules" href="mod_index.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="clusters.html" title="clusters &#8212; Cluster Interface"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="mod_index.html" title="Python Modules"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">Interop Router 3.30 documentation</a> &raquo;</li>
          <li><a href="../index.html" accesskey="U">Deemon Documentation</a> &raquo;</li>
          <li><a href="mod_index.html" accesskey="U">Python Modules</a> &raquo;</li> 
      </ul>
    </div>  
    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  
  <div class="section" id="module-deemon">
<h1><tt class="xref docutils literal"><span class="pre">deemon</span></tt> &#8212; Daemon Main<a class="headerlink" href="#module-deemon" title="Permalink to this headline">¶</a></h1>
<p>This is the Deemon. It integrates the Cluster&#8217;s interface, 
the connection and the communication with the Database.</p>
<dl class="class">
<dt id="deemon.Deemon">
<!--[deemon.Deemon]-->class <tt class="descname">Deemon</tt><a class="headerlink" href="#deemon.Deemon" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref docutils literal"><span class="pre">object</span></tt></p>
<p>The Deemon Class.</p>
<p>Make a dict with the Deemon configurations</p>
<blockquote>
Uses the xml .conf file and create a self.configs member
with the Deemon parameters.</blockquote>
<dl class="method">
<dt id="deemon.Deemon.setConnection">
<!--[deemon.Deemon.setConnection]--><tt class="descname">setConnection</tt><big>(</big><big>)</big><a class="headerlink" href="#deemon.Deemon.setConnection" title="Permalink to this definition">¶</a></dt>
<dd><p>This method set the connection with the SQL database.</p>
<p>Return a connection object 
or None if a ErroSQL exception occours.</p>
</dd></dl>

<dl class="method">
<dt id="deemon.Deemon.setOS">
<!--[deemon.Deemon.setOS]--><tt class="descname">setOS</tt><big>(</big><big>)</big><a class="headerlink" href="#deemon.Deemon.setOS" title="Permalink to this definition">¶</a></dt>
<dd><p>Verify the running OS and set the cluster object.</p>
<p>For supported Windows systems, verify the OS version to define
the class to instance.</p>
<p>Return a cluster object 
or None if the SO is not supported.</p>
</dd></dl>

<dl class="method">
<dt id="deemon.Deemon.work">
<!--[deemon.Deemon.work]--><tt class="descname">work</tt><big>(</big><big>)</big><a class="headerlink" href="#deemon.Deemon.work" title="Permalink to this definition">¶</a></dt>
<dd><p>The main eternum loops.</p>
<p>In this method, the Deemon connect with the DB,
capture jobs, send jobs to cluster, get the results
and send them to DB.</p>
<p>Until the v3.3, this loop is infinite and only end if it crashes.
In future version, a way to close de program without a 
KeyboardInterrupt Exception will be implemented.</p>
<p>In future, this method will be subdivided to stay more clean.</p>
</dd></dl>

</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h4>Previous topic</h4>
            <p class="topless"><a href="mod_index.html" title="previous chapter">Python Modules</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="clusters.html" title="next chapter"><tt class="docutils literal docutils literal docutils literal"><span class="pre">clusters</span></tt> &#8212; Cluster Interface</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="../../_sources/deemon/modules/deemon.txt">Show Source</a></li>
            </ul>
          <h3>Quick search</h3>
            <form class="search" action="../../search.html" method="get">
              <input type="text" name="q" size="18" /> <input type="submit" value="Go" />
              <input type="hidden" name="check_keywords" value="yes" />
              <input type="hidden" name="area" value="default" />
            </form>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../../modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="clusters.html" title="clusters &#8212; Cluster Interface"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="mod_index.html" title="Python Modules"
             accesskey="P">previous</a> |</li>
        <li><a href="../../index.html">Interop Router 3.30 documentation</a> &raquo;</li>
          <li><a href="../index.html" accesskey="U">Deemon Documentation</a> &raquo;</li>
          <li><a href="mod_index.html" accesskey="U">Python Modules</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright .
      Last updated on Dec 17, 2008.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.5.
    </div>
  </body>
</html>